import request from '@/utils/request'

// 查询枢纽互通里程实测数据列表
export function listRoadInterchange(query) {
  return request({
    url: '/function/RoadInterchange/list',
    method: 'get',
    params: query
  })
}

// 查询枢纽互通里程实测数据详细
export function getRoadInterchange(id) {
  return request({
    url: '/function/RoadInterchange/' + id,
    method: 'get'
  })
}

// 新增枢纽互通里程实测数据
export function addRoadInterchange(data) {
  return request({
    url: '/function/RoadInterchange',
    method: 'post',
    data: data
  })
}

// 修改枢纽互通里程实测数据
export function updateRoadInterchange(data) {
  return request({
    url: '/function/RoadInterchange',
    method: 'put',
    data: data
  })
}

// 删除枢纽互通里程实测数据
export function delRoadInterchange(id) {
  return request({
    url: '/function/RoadInterchange/' + id,
    method: 'delete'
  })
}

// 导出枢纽互通里程实测数据
export function exportRoadInterchange(query) {
  return request({
    url: '/function/RoadInterchange/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
